//
//  SXStatusCellBottomView.swift
//  微博09项目
//
//  Created by mac on 15/9/8.
//  Copyright © 2015年 itcast. All rights reserved.
//

import UIKit

class SXStatusCellBottomView: UIView {
    override init(frame: CGRect) {
        super.init(frame: frame)
        setupUI()
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    private func setupUI(){
        addSubview(forwardButton)
        addSubview(commonButton)
        addSubview(likeButton)
        addSubview(separateImage1)
        addSubview(separateImage2)
        backgroundColor = UIColor(white: 0.85, alpha: 1.0)
        ff_HorizontalTile([forwardButton,commonButton,likeButton], insets: UIEdgeInsetsZero)
        separateImage1.ff_AlignHorizontal(type: ff_AlignType.TopRight, referView: forwardButton, size: nil,offset:CGPoint(x: -1, y: 5))
        separateImage2.ff_AlignHorizontal(type: ff_AlignType.TopRight, referView: commonButton, size: nil,offset:CGPoint(x: -1, y: 5))
    }
    private var forwardButton:UIButton = UIButton(title: "转发", imageName: "timeline_icon_retweet", color: UIColor.darkGrayColor(), fontSize: 12)
    private var commonButton:UIButton = UIButton(title: "评论", imageName: "timeline_icon_comment", color: UIColor.darkGrayColor(), fontSize: 12)
    private var likeButton:UIButton = UIButton(title:  " 赞", imageName:  "timeline_icon_unlike", color: UIColor.darkGrayColor(), fontSize: 12)
    private var separateImage1: UIImageView = UIImageView(image: UIImage(named: "timeline_card_bottom_line_highlighted"))
     private var separateImage2: UIImageView = UIImageView(image: UIImage(named: "timeline_card_bottom_line_highlighted"))
}
